<?

if(isset($_REQUEST["action"])){
	if($_REQUEST['action']=="MAJPerso"){
		rosterMAJPerso($_REQUEST["perso"]);
	}
	
	if($_REQUEST["action"]=="supprimer_perso"){
		$sql->query("delete from ".CFG_MYSQL_PREFIX."player where id=".$_REQUEST["id"]);
	}
}

$cfg_params=array();
$res=$sql->request("select * from ".CFG_MYSQL_PREFIX."module_config where module='roster'");
foreach($res as $var){
	$cfg_params[$var->nom]=$var->valeur;
}

$cfg_params["list_rangs"]=array();
$rangs=explode("|",$cfg_params["rangs"]);
foreach($rangs as $rang){
	if($rang!=""){
		$rang=explode(":",$rang);
		$cfg_params["list_rangs"][]=$rang[0];
	}
}


